package com.csun.dsms.service.impl;

import com.csun.dsms.comment.core.support.BaseService;
import com.csun.dsms.mapper.JyProblemDetailMapper;
import com.csun.dsms.mapper.JyProblemReportMapper;
import com.csun.dsms.model.education.JyProblemDetail;
import com.csun.dsms.model.education.JyProblemReport;
import com.csun.dsms.model.education.JyQueryDto;
import com.csun.dsms.service.JyProblemDetailService;
import com.csun.dsms.service.JyProblemReportService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class JyProblemDetailServiceImpl  extends BaseService<JyProblemDetail>
        implements JyProblemDetailService {


    @Resource
    private JyProblemReportMapper jyProblemReportMapper;

    @Resource
    private JyProblemDetailMapper jyProblemDetailMapper;


    @Override
    public PageInfo queryListWithPage(JyQueryDto jyQueryDto) {
        PageHelper.startPage(jyQueryDto.getPageNum(), jyQueryDto.getPageSize());
        return new PageInfo<>(jyProblemDetailMapper.queryListWithPage(jyQueryDto));
    }
}
